home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -screenplay- / shareware / warpquake / warpquakesrc / net_dos.c < prev    next >
C/C++ Source or Header  |  2000-02-29  |  3KB  |  163 lines

  1. /*
  2. Copyright (C) 1996-1997 Id Software, Inc.
  3.  
  4. This program is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU General Public License
  6. as published by the Free Software Foundation; either version 2
  7. of the License, or (at your option) any later version.
  8.  
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
  12.  
  13. See the GNU General Public License for more details.
  14.  
  15. You should have received a copy of the GNU General Public License
  16. along with this program; if not, write to the Free Software
  17. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  18.  
  19. */
  20. #include "quakedef.h"
  21.  
  22. #include "net_loop.h"
  23. #include "net_dgrm.h"
  24. #include "net_ser.h"
  25.  
  26. net_driver_t net_drivers[MAX_NET_DRIVERS] =
  27. {
  28.     {
  29.     "Loopback",
  30.     false,
  31.     Loop_Init,
  32.     Loop_Listen,
  33.     Loop_SearchForHosts,
  34.     Loop_Connect,
  35.     Loop_CheckNewConnections,
  36.     Loop_GetMessage,
  37.     Loop_SendMessage,
  38.     Loop_SendUnreliableMessage,
  39.     Loop_CanSendMessage,
  40.     Loop_CanSendUnreliableMessage,
  41.     Loop_Close,
  42.     Loop_Shutdown
  43.     }
  44.     ,
  45.     {
  46.     "Datagram",
  47.     false,
  48.     Datagram_Init,
  49.     Datagram_Listen,
  50.     Datagram_SearchForHosts,
  51.     Datagram_Connect,
  52.     Datagram_CheckNewConnections,
  53.     Datagram_GetMessage,
  54.     Datagram_SendMessage,
  55.     Datagram_SendUnreliableMessage,
  56.     Datagram_CanSendMessage,
  57.     Datagram_CanSendUnreliableMessage,
  58.     Datagram_Close,
  59.     Datagram_Shutdown
  60.     }
  61.     ,
  62.     {
  63.     "Serial",
  64.     false,
  65.     Serial_Init,
  66.     Serial_Listen,
  67.     Serial_SearchForHosts,
  68.     Serial_Connect,
  69.     Serial_CheckNewConnections,
  70.     Serial_GetMessage,
  71.     Serial_SendMessage,
  72.     Serial_SendUnreliableMessage,
  73.     Serial_CanSendMessage,
  74.     Serial_CanSendUnreliableMessage,
  75.     Serial_Close,
  76.     Serial_Shutdown
  77.     }
  78. };
  79.  
  80. int net_numdrivers = 3;
  81.  
  82.  
  83. #include "net_bw.h"
  84. #include "net_ipx.h"
  85. #include "net_mp.h"
  86.  
  87. net_landriver_t    net_landrivers[MAX_NET_DRIVERS] =
  88. {
  89.     {
  90.     "Beame & Whiteside TCP/IP",
  91.     false,
  92.     0,
  93.     BW_Init,
  94.     BW_Shutdown,
  95.     BW_Listen,
  96.     BW_OpenSocket,
  97.     BW_CloseSocket,
  98.     BW_Connect,
  99.     BW_CheckNewConnections,
  100.     BW_Read,
  101.     BW_Write,
  102.     BW_Broadcast,
  103.     BW_AddrToString,
  104.     BW_StringToAddr,
  105.     BW_GetSocketAddr,
  106.     BW_GetNameFromAddr,
  107.     BW_GetAddrFromName,
  108.     BW_AddrCompare,
  109.     BW_GetSocketPort,
  110.     BW_SetSocketPort
  111.     }
  112. ,
  113.     {
  114.     "IPX",
  115.     false,
  116.     0,
  117.     IPX_Init,
  118.     IPX_Shutdown,
  119.     IPX_Listen,
  120.     IPX_OpenSocket,
  121.     IPX_CloseSocket,
  122.     IPX_Connect,
  123.     IPX_CheckNewConnections,
  124.     IPX_Read,
  125.     IPX_Write,
  126.     IPX_Broadcast,
  127.     IPX_AddrToString,
  128.     IPX_StringToAddr,
  129.     IPX_GetSocketAddr,
  130.     IPX_GetNameFromAddr,
  131.     IPX_GetAddrFromName,
  132.     IPX_AddrCompare,
  133.     IPX_GetSocketPort,
  134.     IPX_SetSocketPort
  135.     }
  136. ,
  137.     {
  138.     "Win95 TCP/IP",
  139.     false,
  140.     0,
  141.     MPATH_Init,
  142.     MPATH_Shutdown,
  143.     MPATH_Listen,
  144.     MPATH_OpenSocket,
  145.     MPATH_CloseSocket,
  146.     MPATH_Connect,
  147.     MPATH_CheckNewConnections,
  148.     MPATH_Read,
  149.     MPATH_Write,
  150.     MPATH_Broadcast,
  151.     MPATH_AddrToString,
  152.     MPATH_StringToAddr,
  153.     MPATH_GetSocketAddr,
  154.     MPATH_GetNameFromAddr,
  155.     MPATH_GetAddrFromName,
  156.     MPATH_AddrCompare,
  157.     MPATH_GetSocketPort,
  158.     MPATH_SetSocketPort
  159.     }
  160. };
  161.  
  162. int net_numlandrivers = 3;
  163.